package constant

const (
	InternalServerErrorCode = 400000
	InternalServerErrorMsg  = "internal_server_err" // 服务异常

	ParamsLostCode         = 400100
	ParamsLostMsg          = "params_lost" // 参数(部分)缺失，参数不满足
	ParamsEmptyCode        = 400101
	ParamsEmptyMsg         = "params_empty" // 参数内容为空
	ParamsNilCode          = 400102
	ParamsNilMsg           = "params_nil" // 参数内容为空
	IdEmptyCode            = 400103
	IdEmptyMsg             = "id_empty" //ID为空
	CreateAlreadyExistCode = 400104
	CreateAlreadyExistMsg  = "create_already_exist" // 待创建的数据已经存在
	OverMaxQuerySizeCode   = 400105
	OverMaxQuerySizeMag    = "over_max_query_size" // 查询数据量过大

	TimeCastErrCode   = 400200
	TimeCastErrMsg    = "time_cast_error" // 时间格式转换错误
	TimeConfusionCode = 400201
	TimeConfusionMsg  = "end_time_before_start_time" //"结束时间早于等于开始时间"

	MockErrCode = 400300
	MockErrMsg  = "mock_error" //用于测试

	CacheEmptyCode = 400400
	CacheEmptyMsg  = "cache_empty" // 标记缓存为空，防止缓存击穿
)

const (
	TimeHandlerError = "time handler error,时间格式转换错误"
	TimeSplitError   = "time Split error, please format period"
	LoadTimeError    = "load time error, use local time"
	IdIsEmptyError   = "id is empty"
	MockError        = "MockError"
)
